<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>本地存储和json</title>
  <link rel="stylesheet" href="../css/common.css">
</head>

<body>
  <!-- 本地存储基础 -->
  <input type="text" id="txtLocal" placeholder="本地信息">
  <button id="btnLocal">保存本地信息</button>
  <button id="btnLoad">加载本地信息</button>
  <button id="btnDelLocal">删除本地信息</button>
  <span id="spLocal"></span>
  <hr>
  <button id="btnJson">json信息</button>
  <pre id="preJson"></pre>
  <div id="divJson"></div>
  <hr>
  <!-- 本地存储加JSON -->
  <input type="text" id="txtId" placeholder="编号">
  <input type="text" id="txtName" placeholder="姓名">
  <button id="btnLocalJson">保存用户信息</button>
  <button id="btnLoadJson">读取用户信息</button>
  <pre id="preUser"></pre>

  <script src="js/b02.js"></script>
</body>

</html>